package com.archetypus.projectschedule.common.dto.people;

import java.io.Serializable;
import java.util.Collection;

import com.archetypus.projectschedule.common.dto.involvements.Involvement;

public class Person implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7222457838512196642L;
	private PersonKey personKey;
	private String name;
	private String email;
	private Collection<Involvement> commitment;
	
	public PersonKey getPersonKey() {
		return personKey;
	}
	public void setPersonKey(PersonKey personKey) {
		this.personKey = personKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Collection<Involvement> getCommitment() {
		return commitment;
	}
	public void setCommitment(Collection<Involvement> commitment) {
		this.commitment = commitment;
	}
	public boolean addInvolvement(Involvement involvement) {
		return commitment.add(involvement);
	}
	public boolean removeInvolvement(Involvement involvement) {
		return commitment.remove(involvement);
	}
}
